package com.jiang.Servict.DAO;

import com.jiang.Servict.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.jiang.Servict.DAO
 * @Description:
 * @Date 2022/6/7 0:38
 */
public class test1 {
    @Test
    public void name() {
        //创建spring 容器
        ApplicationContext classPatht = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService us2 = (UserService) classPatht.getBean("us2");
        us2.registUser();

    }
}
